﻿/*
 * 反射类
 * 提供反射的方法
 * By hkl 
 * At 20110506
 * */

namespace AcctrueWMS.Foundation.Web
{
    using System;
    using System.Reflection;

    public static class Reflector
    {
        public static T CreateInstance<T>(string assemblyName, string assemblyType)
        {
            Assembly asse = Assembly.Load(assemblyName);
            Type t = asse.GetType(assemblyType);
            object obj = Activator.CreateInstance(t);
            return (T)obj;
        }
        public static T CreateInstance<T>(string fullName)
        {
            return (T)(new object());
        }
        public static Type getType(string assemblyName, string assemblyType)
        {
            Assembly asse = Assembly.Load(assemblyName);
           return asse.GetType(assemblyType);
        }

    }
}
